Skip to content

fix: update test mock data to match current API types#130

Open
devin-ai-integration[bot] wants to merge 1 commit intomasterfrom
devin/1769705223-fix-test-mock-data
Open

fix: update test mock data to match current API types#130
devin-ai-integration[bot] wants to merge 1 commit intomasterfrom
devin/1769705223-fix-test-mock-data

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

Summary

Fixes 20 TypeScript errors in test files by updating mock data to match current OpenAPI spec types. No SDK implementation changes.

Changes:

  • Remove streams field from Webset mocks (field no longer exists in API)
  • Add items: [] to PreviewWebsetResponse mocks (now required)
  • Add count to preview search params (now required)
  • Use type assertions in findSimilar tests for checking absent properties

Review & Testing Checklist for Human

  • Verify npm run typecheck passes (was 20 errors, now 0)
  • Confirm the removed streams field is actually not in the current Webset type in openapi.ts

Notes

Requested by: ishan@exa.ai
Devin session

- Remove streams field from Webset mock objects (not in API spec)
- Add items field to PreviewWebsetResponse mocks
- Add count to preview search params (now required)
- Fix findSimilar test assertions for contents:false case

Co-Authored-By: ishan@exa.ai <ishan@exa.ai>
@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants